<!--==========内容主体 START==========-->
<div style='height:60px;opcity:10'></div>
    <div class="main">
    <!--=====左侧 START=====-->
    {include file="public/left"/}
    <!--=====左侧 end=====-->

    <!--=====中部=====-->
    <div id="middle" class='fleft'>
    <!--微博发布框-->
        <div class='send_wrap'>
            <div class='send_title fleft'></div>
            <div class='send_prompt fright'>
                <span>你还可以输入<span id='send_num'>140</span>个字</span>
            </div>
            <div class='send_write'>
                <form url="{:url('home/index/send_weibo')}" id="send_weibo_data">
                    <textarea sign='weibo' name='content'></textarea>
                    <span class='ta_right'></span>
                    <div class='send_tool'>
                        <ul class='fleft'>
                            <li title='表情'><i class='icon icon-phiz phiz' sign='weibo'></i></li>
                            <li title='图片'><i class='icon icon-picture'></i>
                            <!--图片上传框-->
                                <div id="upload_img" class='hidden'>
                                    <div class='upload-title'><p>本地上传</p><span class='close'></span></div>
                                    <div style="padding: 35px 0px 0px 100px;">
                                        <input type="hidden" name='max' value='' id="weibo_max"/>
                                        <input type="hidden" name='medium' value='' id="weibo_medium"/>
                                        <input type="hidden" name='mini' value='' id="weibo_mini"/>
                                        <input type="hidden" name='img' value='' id="weibo_img"/>
                                        <span id="weibo-uploadify"></span>
                                    </div>
                                </div>
                            <!--图片上传框-->
                                <div id='pic-show' class='hidden'>
                                    <img src="" alt="" width="380" height="380"/>
                                </div>
                            </li>
                        </ul>
                        <input type='submit' value='' class='send_btn fright' title='发布微博按钮'/>
                    </div>
                </form>
            </div>
        </div>
        <!--微博发布框-->
        <div class='view_line'>
            <strong>微博</strong>
        </div>
        {if condition="!$data['data']"}
            没有相关的微博
        {/if}

        {if condition="$data['data']"}
        <!--====================普通微博样式====================-->
        {foreach name="$data['data']" item="v"}
        {if condition="!$v['isturn']"}
        <div class="weibo">
            <!--头像-->
            <div class="face">
                <a href="/uid/{$v['uid']}">
                    {if condition="$v['face50']"}
                    <img src="{$v['face50']}" width='50' height='50'/>
                    {else/}
                    <img src="__HOME__/images/noface.gif" width='50' height='50'/>
                    {/if}
                </a>
            </div>
            <div class="wb_cons">
                <dl>
                <!--用户名-->
                    <dt class='author'>
                        <a href="/uid/{$v['uid']}">{$v['username']}</a>
                    </dt>
                <!--发布内容-->
                    <dd class='content'>
                        <p>{:replace_weibo($v['content'])}</p>
                    </dd>
                    {if condition="$v['img']"}
                    <!--微博图片-->
                     <dd>
                        <div class='wb_img'>
                        <!--小图-->
                            <img src="{$v['mini']}" class='mini_img '/>
                            <div class="img_tool hidden">
                                <ul>
                                    <li>
                                        <i class='icon icon-packup'></i>
                                        <span class='packup'>&nbsp;收起</span>
                                    </li>
                                    <li>|</li>
                                    <li>
                                        <i class='icon icon-bigpic'></i>
                                        <a href="{$v['max']}" target='_blank'>&nbsp;查看大图</a>
                                    </li>
                                </ul>
                            <!--中图-->
                                <div class="img_info"><img src="{$v['medium']}"/></div>
                            </div>
                        </div>
                     </dd>
                    {/if}
                </if>
                </dl>
                <!--操作-->
                <div class="wb_tool">
                <!--发布时间-->
                    <span class="send_time">{:time_format($v['time'])}</span>
                    <ul>
                        <li class="del-li hidden">
                            <i class="ui-icon icon-del">
                            </i><span class="del-weibo" wid="{$v['wid']}" url="{:url('home/index/del_weibo')}">删除</span>
                        </li>
                        <li class="del-li hidden" style="color: rgb(221, 237, 240);">|</li>
                        <li class="praise-wrap">
                            <i class="ui-icon icon-praise"></i>
                            <span class="praise" wid="{$v['wid']}" url="{:url('home/index/praise')}">赞(<span>{$v['praise']}</span>)</span>
                        </li>
                        <li style="color:#DDEDF0;">|</li>
                        <li>
                            <i class="ui-icon icon-forward"></i>
                            <span class='turn' wid="{$v['wid']}" valign="top">转发({$v['turn']})</span>
                        </li>
                        <li style="color:#DDEDF0;">|</li>
                        <li class="keep-wrap">
                            <i class="ui-icon icon-feed-collect"></i>
                            <span class='keep' wid="{$v['wid']}" url="{:url('home/index/keep')}">收藏({$v['keep']})</span>
                            <div class="cp-keep-up hidden"></div>
                        </li>
                        <li style="color:#DDEDF0;">|</li>
                        <li>
                            <i class="ui-icon icon-comments"></i>
                            <span class='comment' wid="{$v['wid']}" url="{:url('home/comment/get_comment')}">评论({$v['comment']})</span>
                        </li>
                    </ul>
                </div>
                <!--=====回复框=====-->
                <div class='comment_load hidden'>
                    <img src="__HOME__/images/loading.gif">评论加载中，请稍候...
                </div>
                <div class='comment_list hidden'>
                    <textarea name="" sign='comment'></textarea>
                    <ul>
                        <li class='phiz fleft' sign='comment'></li>
                        <li class='comment_turn fleft'>
                            <label>
                                <input type="checkbox" name='' value="1"/>同时转发到我的微博
                            </label>
                        </li>
                        <li class='comment_btn fright' wid="{$v['wid']}" uid="{$v['uid']}" url="{:url('home/comment/send_coomment')}">评论</li>
                    </ul>
                </div>
                <!--=====回复框结束=====-->
            </div>
        </div>
        {else/}
        <!--====================转发样式====================-->
        <div class="weibo">
        <!--头像-->
            <div class="face">
                <a href="/uid/{$v['uid']}">
                    {if condition="$v['face50']"}
                    <img src="{$v['face50']}" width='50' height='50'/>
                    {else/}
                    <img src="__HOME__/images/noface.gif" width='50' height='50'/>
                    {/if}
                </a>
            </div>
            <div class="wb_cons">
                <dl>
                <!--用户名-->
                    <dt class='author'>
                        <a href="/uid/{$v['uid']}">{$v['username']}</a>
                    </dt>
                <!--发布内容-->
                    <dd class='content'>
                        <p>{:replace_weibo($v['content'])}</p>
                    </dd>
                <!--转发的微博内容-->
                    <dd>
                        <div class="wb_turn">
                            <dl>
                            <!--原作者-->
                                <dt class='turn_name'>
                                    <a href="/uid/{$v['isturn']['uid']}">@{$v['isturn']['uname']}</a>
                                </dt>
                            <!--原微博内容-->
                                <dd class='turn_cons'>
                                    <p>{:replace_weibo($v['isturn']['content'])}</p>
                                </dd>

                                <!--原微博图片-->
                                {if condition="$v['img']"}
                                <dd>
                                    <div class="turn_img">
                                        <!--小图-->
                                        <img src="{$v['isturn']['mini']}" class='turn_mini_img'/>
                                        <div class="turn_img_tool hidden">
                                            <ul>
                                                <li>
                                                    <i class='icon icon-packup'></i>
                                                    <span class='packup'>&nbsp;收起</span></li>
                                                <li>|</li>
                                                <li>
                                                    <i class='icon icon-bigpic'></i>
                                                    <a href="{$v['isturn']['max']}" target='_blank'>&nbsp;查看大图</a>
                                                </li>
                                            </ul>
                                            <!--中图-->
                                            <div class="turn_img_info">
                                                <img src="{$v['isturn']['medium']}"/>
                                            </div>
                                        </div>
                                    </div>
                                </dd>
                                {/if}
                            </dl>
                            <!--转发微博操作-->
                            <div class="turn_tool">
                                <span class='send_time'>{:time_format($v['isturn']['time'])}</span>
                                <ul>
                                    <li>
                                        <i class="ui-icon icon-forward"></i>
                                        <span style="color: #2B96E1;">转发({$v['isturn']['turn']})</span>
                                    </li>
                                    <li style="color:#DDEDF0;">|</li>
                                    <li>
                                        <i class="ui-icon icon-comments"></i>
                                        <span style="color: #2B96E1;">评论({$v['isturn']['comment']})</span>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </dd>
                </dl>
                <!--操作-->
                <div class="wb_tool">
                    <!--发布时间-->
                    <span class="send_time">{:time_format($v['time'])}</span>
                    <ul>
                        <li class="del-li hidden">
                            <i class="ui-icon icon-del">
                            </i><span class="del-weibo" wid="{$v['wid']}" url="{:url('home/index/del_weibo')}">删除</span>
                        </li>
                        <li class="del-li hidden" style="color: rgb(221, 237, 240);">|</li>
                        <li class="praise-wrap">
                            <i class="ui-icon icon-praise"></i>
                            <span class="praise" wid="{$v['wid']}" url="{:url('home/index/praise')}">赞(<span>{$v['praise']}</span>)</span>
                        </li>
                        <li style="color:#DDEDF0;">|</li>
                        <li>
                            <i class="ui-icon icon-forward"></i>
                            <span class='turn' wid="{$v['wid']}" tid="{$v['isturn']['id']}">转发({$v['turn']})</span>
                        </li>
                        <li style="color:#DDEDF0;">|</li>
                        <li class="keep-wrap">
                            <i class="ui-icon icon-feed-collect"></i>
                            <span class='keep' wid="{$v['wid']}" url="{:url('home/index/keep')}">收藏({$v['keep']})</span>
                            <div class="cp-keep-up hidden"></div>
                        </li>
                        <li style="color:#DDEDF0;">|</li>
                        <li>
                            <i class="ui-icon icon-comments"></i>
                            <span class='comment' wid="{$v['wid']}" url="{:url('home/comment/get_comment')}">评论({$v['comment']})</span>
                        </li>
                    </ul>
                </div>
                <!--回复框-->
                <div class='comment_load hidden'>
                    <img src="__HOME__/images/loading.gif">评论加载中，请稍候...
                </div>
                <div class='comment_list hidden'>
                    <textarea name="" sign='comment'></textarea>
                    <ul>
                        <li class='phiz fleft' sign='comment'></li>
                        <li class='comment_turn fleft'>
                            <label>
                                <input type="checkbox" name='' value="1"/>同时转发到我的微博
                            </label>
                        </li>
                        <li class='comment_btn fright' wid="{$v['wid']}" uid="{$v['uid']}" url="{:url('home/comment/send_coomment')}">评论</li>
                    </ul>
                </div>
                <!--回复框结束-->
            </div>
        </div>
        {/if}
        <!--====================转发样式结束====================-->
        {/foreach}
        {/if}
        <!--分页区域 START-->
        <div id='page'>{$data['page']}</div>
        <!--分页区域 END-->
    </div>
    <!--==========右侧 START==========-->
    {include file="public/right"/}
    <!--==========右侧 END==========-->
</div>
<!--==========内容主体结束==========-->


